<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>

<%@ taglib uri="/tags/radioanswers" prefix="radioanswers" %>

<%@ page import="net.lwf.handler.util.ImageHtml,net.lwf.handler.constant.IHandlerConstant"%>
<%@ include file="/worksheet/maths/fractions/fractionsJs.jsp" %>
<html:form action="/simplefractions" onsubmit="return false;" >
	<div onKeyPress="return processEnter(event, '/simplefractions.do?action=checkanswer')">  
		<table border="0" align="center" width="60%">

             <logic:equal name="fform" property="askQuestion" value="true">

            <tr>
                <td class="instructions_text">
                	<bean:write name="fform" property="instructionText"/>
                </td>                 
            </tr>                    
            <tr>
                <td class="leftlabel">
                     Question #: <bean:write name="fform" property="questionNumber"/>
                </td>                 
            </tr>
            <tr>
                <td>&nbsp;</td>                 
            </tr>  
            <tr>
                <td class="datacenter">
                	<bean:write property="htmlQuestion" name="fform" filter="false"/>
                </td>                 
            </tr>                   
            <tr>
             	 <td>
		       	 	<fieldset>
		       	 		<legend class="legend" align="left">Choose  <span> the answer </span></legend>
		         	 	<radioanswers:display  onClick="checkAnswer('/simplefractions.do?action=checkanswer')" rowsonly="false"/>
		       	 	</fieldset> 
             	 </td> 
            </tr>
            <tr> 
                <td>&nbsp;</td>                 
            </tr>                  
            <tr>
                <td>
                	<table>
                		<tr>
                			<td class="rightlabel">
                				<img src="<%=request.getContextPath()%>/image/arrows/arrowright1.gif" border="0">&nbsp;&nbsp;
                				For the next sum, 
                			</td>
                			<td class="rightlabel">
                              click <a href="<%=request.getContextPath()%>/simplefractions.do?action=generate">here</a>                     			
                			</td>
                		</tr>
                	</table>
                </td>                 
            </tr>    
            </logic:equal>     
		</table>  
	</div>
</html:form>
